<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
/**
 * 配置文件
 */
use \think\Request;

$basename = Request::instance()->root();
$webroot  = str_replace('\\','/',$basename);
if (pathinfo($basename, PATHINFO_EXTENSION) == 'php') {
    $basename = trim(str_replace('\\','/',dirname($basename)),'/');
    $basename = $basename ? '/'.$basename : '';
}

return [
    'template'  =>  [
        'layout_on'     =>  true,
        'layout_name'   =>  'layout',
    ],
];